{include file="index/header" /}
<div class="container xs-top-15" style="max-width:960px">
    <div class="columns">
        <!--区域1-->
        <div class="column">
            <!--模块1-->
            <div class="card">
                <div class="xs-card-content">
                    <aside class="menu">
                        <p class="menu-label">
                            会员中心
                        </p>
                        <ul class="menu-list">
                            <li><a href="{:url('index/user/main')}">会员首页</a></li>
                        </ul>
                        <p class="menu-label">
                            
                        </p>
                        <ul class="menu-list">
                            <li><a href="{:url('index/user/pay')}">充值题币</a></li>
                            <li><a href="{:url('index/user/open_vip')}">开通会员</a></li>
                            <li><a href="{:url('index/user/password')}">修改密码</a></li>
                        </ul>
                        <p class="menu-label">
                            邀请管理
                        </p>
                        <ul class="menu-list">
                            <li><a class="is-active" href="{:url('index/user/invite_list')}">邀请列表</a></li>
                        </ul>
                    </aside>
                </div>
            </div>
            <hr class="xs-hr">

        </div>
        <!--区域2-->
        <div class="column is-four-fifths">
            <div class="card">
                <header class="card-header">
                    <p class="card-header-title">
                        邀请列表 (只展示最新15条)
                    </p>
                </header>
                <div class="xs-card-content">
                    <div class="content">
                        <table class="table">
                            <thead>
                              <tr>
                                <th>序号</th>
                                <th>用户名</th>
                                <th>金额</th>
                                <th>日期</th>
                                <th>结算</th>
                              </tr>
                            </thead>
                            <tbody>
                                {volist name="list" id="vo"}
                                    <tr>
                                    <th>{$vo.Id}</th>
                                    <td>{$vo.username}</td>
                                    <td>{$vo.balance}</td>
                                    <td>{$vo.time}</td>
                                    <td>{eq name="$vo.state" value="0"}
                                        <span style="color: red;">未结算</span>
                                        {else/}
                                        <span style="color: green;">已结算</span>
                                        {/eq}</td>
                                  </tr>
                                {/volist}
                        
                            </tbody>
                          </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    var qrcode = new QRCode(document.getElementById("qrcode"), {
        width: 100,
        height: 100
    });
    function makeCode() {
        var url = "http://baidu.com";
        qrcode.makeCode(url);
    }
    makeCode();
</script>
{include file="index/footer" /}